<?php echo $this->form; ?>
<input type="hidden" id="cid" value="<?php echo $this->cid; ?>" />
<script type="text/javascript">
    $(document).ready(function(){
        $('#loanBtn').click(function(){
            var pdata = $('#frmLoan').serialize();
            pdata = pdata + "&cid="+$('#cid').val();
           $.post('<?php echo $this->baseUrl('service/loan/add')?>',pdata,function(data){
               $('#ss').html(data);
               $('#loaninfo').load('<?php echo $this->baseUrl('customer/show') ?>','',function(){})
           })
        });
    });
</script>

 